$(function() {

	$.validator.addMethod("notAllEmpty", function(value, element, param) {
		return notAllEmpty(value, param);
	}, "至少输入两个查询条件");

});

function notAllEmpty(value, param) {
	var result = false;
	var j = 0;
	$.each(param, function(i) {
		if (param[i] && param[i].val()) {
			++j;
		}
	});
	if (j >= 2) {
		result = true;
	}
	return result;
}